if(true){
    var a = 1
}
console.log(a)  //1


for(var i = 0;i<4;i++){

}
console.log(i)   //4


switch(1){
    case 1:
    var test = 'abc'
    break
}
console.log(test)  //abc

try{
    var b = 'b'
}catch{

}
console.log(b)  //b

{
    var c = 'c'
}
console.log(c)  //c

data:{
    var d = 'd'
}
console.log(d) //d

let n = 3
while(n<4){
    n++
    var e = 'e'
}
console.log(e)